<?php

require_once "core-application/class.message.php";

$Message = new message;

$Message -> setMsg("SELECT mail_id, mail_date, mail_from, mail_object, mail_text FROM mail WHERE mail_to = " . $_SESSION['cid']);

echo json_encode($Message -> getMsg());

?>